package simplyrugby.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 比赛
 * @TableName match
 */
@TableName(value ="`match`")
@Data
public class Match implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id")
    private String id;

    /**
     * 
     */
    @TableField(value = "first_team_id")
    private String firstTeamId;

    /**
     * 
     */
    @TableField(value = "second_team_id")
    private String secondTeamId;

    /**
     * 
     */
    @TableField(value = "match_name")
    private Integer matchName;

    /**
     * 
     */
    @TableField(value = "match_time")
    private Date matchTime;


    @TableField(exist = false)
    private Team firstTeam;

    @TableField(exist = false)
    private Team secondTeam;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}